package com.example.androidlearning2200.bean;

/**
 * 新闻实体类
 */
public class NewsBean {
    // 标题
    private String title;
    // 作者
    private String author;
    // 评论数量
    private Integer commentCounts;
    // 发布时间
    private String publishTime;
    // 图片资源id
    private Integer resId;

    public NewsBean(String title, String author, Integer commentCounts, String publishTime, Integer resId) {
        this.title = title;
        this.author = author;
        this.commentCounts = commentCounts;
        this.publishTime = publishTime;
        this.resId = resId;
    }

    public String getTitle() {
        return title;
    }

    public String getAuthor() {
        return author;
    }

    public Integer getCommentCounts() {
        return commentCounts;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public Integer getResId() {
        return resId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setCommentCounts(Integer commentCounts) {
        this.commentCounts = commentCounts;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }
}
